power residual method

乘幂余数法